Skip to content

Internal libtiff: add TIFFGetMaxCompressionRatio() and use it in _TIFFReadEncoded[Tile|Strip)AndAllocBuffer()#14416

Draft
rouault wants to merge 1 commit intoOSGeo:masterfrom
rouault:TIFFGetMaxCompressionRatio
Draft

Internal libtiff: add TIFFGetMaxCompressionRatio() and use it in _TIFFReadEncoded[Tile|Strip)AndAllocBuffer()#14416
rouault wants to merge 1 commit intoOSGeo:masterfrom
rouault:TIFFGetMaxCompressionRatio

Conversation

@rouault
Copy link
Copy Markdown
Member

@rouault rouault commented Apr 21, 2026

same as https://gitlab.com/libtiff/libtiff/-/merge_requests/872 + GDAL's tif_jxl.c related changes

@rouault rouault force-pushed the TIFFGetMaxCompressionRatio branch from 80e4b30 to d047ab6 Compare April 21, 2026 18:18
@jratike80
Copy link
Copy Markdown
Collaborator

I guess that sparse files are handled somehow when the compression ratio is evaluated, aren't they?

@rouault
Copy link
Copy Markdown
Member Author

rouault commented Apr 21, 2026

I guess that sparse files are handled somehow when the compression ratio is evaluated, aren't they?

the compression ratio only makes sense / applies to non-sparse tiles. Sparse tiles are a GDAL-only concept and are illegal in plain TIFF

@rouault rouault marked this pull request as draft April 21, 2026 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants